<div id="modText">
	<div class="textW">
		<h3><?php echo $this->translate("Tickets verrechnen"); ?></h3>
		<p>&nbsp;</p>
		<p><?php echo $this->translate("Hier können erledigte Tickets als verrechenbar markiert werden."); ?></p>
	</div>
</div>
<div id="box" >
	<div class="padding">
		<form name="form-markticketsforbilling" id="form-markticketsforbilling" method="post" action="#">
		<table id="c_tickettable" class="tablesorter">
			<thead>
				<tr class="header">
					<th width="15%">Projekt</th><th>Titel</th><th width="10%">Status</th><th width="15%">Aktion</th><th width="5%">&nbsp;</th>
				</tr>
			</thead>
			<tbody>
				
				<?php 
				foreach($this->completed_tickets as $ticket) { ?>
				<tr class="trow" id="trow-<?php print($ticket['tid']); ?>">
					<td><?php if($ticket['pid'] != 0) print($ticket['ptitle']); else print("(ohne Projekt)"); ?></td>
					<td><?php print($ticket['ttitle']); ?></td>
					<td><?php print($ticket['status']); ?></td>
					<td><a href="/<?= Zend_Registry::get('Zend_Locale') ?>/tickets/edit/tid/<?= $ticket['tid'] ?>">bearbeiten</a></td>
					<td align="center"><input name="<? print($ticket['tid']); ?>" id="select" type="checkbox" /></td>
				</tr>
				<?php } ?>
				
				<tr class="tablefooter">
					<td colspan="4" align="right">alle Tickets aus-/abwählen</td>
					<td align="center"><input name="checkall" id="checkAllAuto" type="checkbox" value="checkall" /></td>
				</tr>
			</tbody>
		</table>
		</form>
		<div class="submitbox" >
			<div class="submit">
				<p><a id="submit-markticketsforbilling" href="#"><?php echo $this->translate("Markierte Tickets für Rechnungen freigeben"); ?></a></p>
			</div>
		</div>
	</div>
</div>